package cn.bdqn.sp.service;

import cn.bdqn.sp.pojo.SysUser;

import java.util.List;

public interface SysUserService {

    /**
     * 登录
     *
     * @param account
     * @param password
     * @return
     */
    public SysUser login(String account, String password) throws RuntimeException;


    List<SysUser> getUsers(SysUser sysUser);

    int addUser(SysUser sysUser);

    SysUser getUserById(Long id);

    int updateUser(SysUser sysUser);

    int deleteUser(Long id);

    int updatePassword(String account, String oldPassword, String newPassword);

    SysUser getUserByAccount(String account);
}
